/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package commonpackage;

/**
 *
 * @author chuda
 */
public class Travel extends POI {

    private String country;
    private String city;
    private double price;

    public Travel() {
    }

    public Travel(String type, String name,String descr, String address, String telephone, boolean order, Position pos, String country, String city, double price) {
        super(type, name,descr, address, telephone, order, pos);
        this.country = country;
        this.city = city;
        this.price = price;

    }

    /**
     * @return the country
     */
    public String getCountry() {
        return country;
    }

    /**
     * @param country the country to set
     */
    public void setCountry(String country) {
        this.country = country;
    }

    /**
     * @return the city
     */
    public String getCity() {
        return city;
    }

    /**
     * @param city the city to set
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * @return the price
     */
    public double getPrice() {
        return price;
    }

    /**
     * @param price the price to set
     */
    public void setPrice(double price) {
        this.price = price;
    }

    public String toString() {
        /*this.country = country;
        this.city = city;
        this.price = price;*/
        String ret = super.toString() + "#";
        ret += this.country + "#" + this.city + "#" + this.price;
        return ret;
    }
}
